package com.cn.serviceIntface;

import com.cn.entity.UserEntity;

import java.sql.SQLException;
import java.util.List;

public interface UserServiceIntface {
    UserEntity queryOne(UserEntity userEntity, String type) throws ClassNotFoundException, SQLException, InstantiationException, IllegalAccessException;

    int addUser(UserEntity userEntity) throws SQLException, ClassNotFoundException;

    int updateUser(UserEntity userEntity, String type) throws SQLException, ClassNotFoundException;

    List<UserEntity> queryAll(Integer currentPageNo, Integer pageSize) throws SQLException, ClassNotFoundException;

    List<UserEntity> queryAll();
}
